<?php
 /******************************************************************************
 *   GunCMS is an avid supporter of open source software. This is the appropriate 
 *   option if you are creating an open source application with a license 
 *   compatible with the GNU GPL license v3.
 *   For details http://www.gnu.org/licenses/gpl.html
 *   DO NOT USE FOR COMMERCIAL WITHOUT PERMISSION
 *
 * GunCMS Version 1.0.3
 * Copyright(c) 2009-2010, T & L GdbR
 * info@guncms.de
 * 
 * http://www.guncms.de
 ********************************************************************************/
// No definitions, because the user is only important for the 
// administration pages.
class FgcmsNews {
	var $db;
 	var $smarty;	
	public function __construct($db, $smarty) {
		//contructor function
		$this->db = $db;
		$this->smarty = $smarty;
	}
	
	/* 
	 * Show News in right side
	 */
	public function shownews() {
		$news = FgcmsNewsBean::show_news($this->db);
		$this->smarty->assign('SHOWNEWS',$news);		
	}
	
	public function showallnews() {
		//$news = FgcmsNewsBean::show_news($this->db);
		//$this->smarty->assign('SHOWNEWS',$news);		
	}
}
?>
